<%@ Page Language="C#" MasterPageFile="~/ShopOnline/ShopOnline.master" AutoEventWireup="true" CodeFile="ProductList.aspx.cs" Inherits="ShopOnline_ProductList" Title="Untitled Page" Theme="ShopOnline" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderContent" Runat="Server">

<div style="width:90%; overflow:hidden; ">
    <ofcc:Panel ID="pnlHeader" runat="server" CssClassBottomLeft="sweetSubjectHide" CssClassBottomRight="sweetSubjectHide"
        CssClassTopLeft="sweetSubjectTL" CssClassTopRight="sweetSubjectTR" Width="100%">
        <Subject><span><%#GetSubject()%></span>
        </Subject>
        <Container></Container>
    </ofcc:Panel>
    
    <div class="sweetSubject">
        <ofcc:DataList ID="dataList" runat="server" RepeatColumns="3" OnSplitPageIndexChange="dataList_SplitPageIndexChange">
        <ItemTemplate>
            <div style="text-align:center; cursor:hand;">
            <img onclick="window.location='ProductView.aspx?ProductID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>&Category=<%#DataBinder.Eval(Container.DataItem,"CategoryID")%>';"
                         src="<%#GetThumbImage(DataBinder.Eval(Container.DataItem, "StoreLocationID"),                    
                        DataBinder.Eval(Container.DataItem, "CreateDate"),
                        DataBinder.Eval(Container.DataItem, "ProductID"),
                        DataBinder.Eval(Container.DataItem, "ThumbImageFileName"))%>" 
                        alt="<%#DataBinder.Eval(Container.DataItem,"Subject")%>" /><br />
            <%#base.FormatSubject(DataBinder.Eval(Container.DataItem, "Subject"), 10)%><br />
            <span class="listPrice"><%#base.FormatZero(DataBinder.Eval(Container.DataItem, "ListPrice").ToString())%> Ԫ</span>
            </div>
        </ItemTemplate>
        <FooterTemplate></FooterTemplate>
        </ofcc:DataList>
    </div>
    <ofcc:Panel ID="pnlFooter" runat="server" CssClassBottomLeft="sweetSubjectBL" CssClassBottomRight="sweetSubjectBR"
        CssClassTopLeft="" CssClassTopRight="sweetSubjectHide" Width="100%">
        <Subject></Subject><Container>        
        </Container>
    </ofcc:Panel>
    <asp:HiddenField ID="hfCategory" runat="server" />
</div>
</asp:Content>

